package com.numberone.master.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.numberone.master.common.persistence.DataEntity;

/**
 * 意见反馈Entity
 * @author ck
 * @version 2018-03-07
 */
public class Opinion extends DataEntity<Opinion> {
	
	private static final long serialVersionUID = 1L;
	private String names;		// 名称
	private String describes;		// 描述
	private String state;		// 状态 0：未处理 1：已处理
	private String feedback;		// 反馈信息
	private String createById;
	private String createByName;
	
	public Opinion() {
		super();
	}

	public Opinion(String id){
		super(id);
	}

	@Length(min=1, max=15, message="名称长度必须介于 1 和 15 之间")
	public String getNames() {
		return names;
	}

	public void setNames(String names) {
		this.names = names;
	}
	
	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}
	
	@Length(min=0, max=1, message="状态 0：未处理 1：已处理长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	public String getFeedback() {
		return feedback;
	}

	public void setFeedback(String feedback) {
		this.feedback = feedback;
	}

	public String getCreateById() {
		return createById;
	}

	public void setCreateById(String createById) {
		this.createById = createById;
	}

	public String getCreateByName() {
		return createByName;
	}

	public void setCreateByName(String createByName) {
		this.createByName = createByName;
	}
	
	
}